import Http from "@/http"

export function pageApi(params:any) {
    return Http.get('member/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('member/edit/' + params.id, params) : Http.post('member/add', params)
}

export function listApi() {
    return Http.get('member/list')
}


export function deleteApi(id) {
    return Http.delete('member/delete/' + id)
}

export function restpwdApi(id:number) {
    return Http.put('member/resetpwd', { id })
}


export function updateApi(params:any) {
    return Http.put('member/update', params)
}

export function changePwdApi(params:any) {
    return Http.put('member/changePwd', params)
}